#include <log.h>
#include <settings.h>

int MAIN(int argc, char **argv)
{
  log_default_streams_t clg;

  clg = logAddDefaultStreams(NULL);
  logEdit(clg.notice, LOG_GROUP_SET_LEVEL);

  if (argc != 2)
  {
    lprintf(STREAM(clg.err), "Usage: %s <xml file>", argv[0]);
    exit(1);
  }

  scSetInit();
  scSetRead(argv[1]);
  scSetPrint(stdout);

  return 0;
}
